package com.sim.stream.service.impl;

import com.sim.stream.service.StreamPushService;
import org.apache.commons.lang3.StringUtils;


public abstract class StreamPushServiceImpl implements StreamPushService {
    private String host;

    @Override
    public String getUrl(String groupId, String UserId){
        String host = this.getHost();
        if(StringUtils.isNoneBlank(host)){
            this.setHost(host);
            return host + "/" + groupId + ":" + UserId;
        }
        return null;
    }

    public String getHost(){
        return this.host;
    }

    public void setHost(String host) {
        this.host = host;
    }
}
